package com.ruan4.yangjj.entity;

import java.io.Serializable;

/**
 *医生的实体类
 */
public class Doctor implements Serializable {
    private int id;  //医生的编号
    private String name; //医生的名字
    private String level; //医生的登记
    //这是一个部门对象，外键的地方配置一个对象
    private Department department;  //医生的部门

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
}
